package com.qf.service.impl;

import com.qf.UserService;
import lombok.extern.slf4j.Slf4j;
import org.apache.dubbo.config.annotation.DubboService;

/**
 * @author 千锋教育
 * @Company http://www.mobiletrain.org/
 * @Version 1.0
 */
@Slf4j
@DubboService
public class UserServiceImpl implements UserService {

    @Override
    public boolean login(String username, String password) {
        log.info("[提供者模块] 登录功能， username = {} ， password= {}", username,password );
        if("zhangsan".equalsIgnoreCase(username) && "123".equalsIgnoreCase(password)) {
            return true;
        }
        return false;
    }
}
